package org.ksoap2.transport;

import java.io.IOException;

public class KeepAliveHttpsTransportSE extends HttpsTransportSE
{
  private HttpsServiceConnectionSE conn = null;
  private final String host;
  private final int port;
  private final String file;
  private final int timeout;

  public KeepAliveHttpsTransportSE(String host, int port, String file, int timeout)
  {
    super(host, port, file, timeout);
    this.host = host;
    this.port = port;
    this.file = file;
    this.timeout = timeout;
  }

  protected ServiceConnection getServiceConnection()
    throws IOException
  {
    this.conn = new HttpsServiceConnectionSEIgnoringConnectionClose(this.host, this.port, this.file, this.timeout);
    this.conn.setRequestProperty("Connection", "keep-alive");
    return this.conn;
  }
}
